import Vue from "vue";
import Vuex from "vuex";
import persistedstate from "vuex-persistedstate";

import login from "./modules/login";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    login,
  },
  plugins: [persistedstate({ paths: ["login.token"] })],
});
